import request from '@/utils/request'

// 查询承运方列表
export function listAidCarrier(query) {
  return request({
    url: '/aid/carrier/list',
    method: 'get',
    params: query
  })
}

// 查询承运方详细
export function getAidCarrier(carrierId) {
  return request({
    url: '/aid/carrier/' + carrierId,
    method: 'get'
  })
}

// 新增承运方
export function addAidCarrier(data) {
  return request({
    url: '/aid/carrier',
    method: 'post',
    data: data
  })
}

// 修改承运方
export function updateAidCarrier(data) {
  return request({
    url: '/aid/carrier',
    method: 'put',
    data: data
  })
}

// 删除承运方
export function delAidCarrier(carrierId) {
  return request({
    url: '/aid/carrier/' + carrierId,
    method: 'delete'
  })
}

// 导出承运方
export function exportAidCarrier(query) {
  return request({
    url: '/aid/carrier/export',
    method: 'get',
    params: query
  })
} 